import service from "@/utils/request";
/**
 * 登录地址
 * @param {*} userAccount 用户账号
 * @param {*} password 密码
 * @returns String token
 */
export function loginService(userAccount, password) {
  return service({
    url: "/sysUser/login",
    method: "post",
    data: {
      userAccount,
      password
    }
  })
}

/**
 * 获取用户昵称
 * @returns String nickName
 */
export function getUserInfoService() {
  return service({
    url: "/sysUser/info",
    method: "get",
  })
} 

/**
 * 退出登录
 * @returns 
 */
export function logoutService() {
  return service({
    url: "/sysUser/logout",
    method: "delete",
  })
} 

